package com.scalar.chiptrack.operations.wipflush.actioncommands;

import com.scalar.chiptrack.commons.Constants;
import com.scalar.chiptrack.actioncommands.ActionCommand;


/**
 * User: Sujan
 * Date: Oct 24, 2005
 * Time: 12:50:41 PM
 */
public class WipFlushSetupActionCommandFactory implements Constants
{

    public static ActionCommand getActionCommand( String action )
    {
        if ( ACTION_LOAD_BASE_PRODUCTS.equalsIgnoreCase( action ) )
        {
            return new WipFlushSetupSearchCommand();
        }
        else if ( ACTION_LOAD_PRODUCT_FAMILY_DETAILS.equalsIgnoreCase( action ) )
        {
            return new WipFlushSetupProductFamilyDetailsCommand();
        }
        else if ( ACTION_SAVE.equalsIgnoreCase( action ) )
        {
            return new WipFlushSetupSaveCommand();
        }
        else if ( ACTION_LOAD_BIN_DETAILS.equalsIgnoreCase( action ) )
        {
            return new WipFlushSetupLoadBinDetailsCommand();
        }
        else if ( ACTION_LOAD_PROCESS_STEP_DETAILS.equalsIgnoreCase( action ) )
        {
            return new WipFlushSetupLoadProcessStepDetailsCommand();
        }
        return null;
    }
}